<?php

namespace app\server\inter;

/**
 * Interface WorkerDriver
 */
interface WorkerDriver
{
    function onWorkerStart($worker);

    function onConnect($connection);

    function onMessage($connection, $data);

    function onClose($connection);

    function onBufferFull($connection);

    function onBufferDrain($connection);

    function onError($connection, $code, $msg);

}